Skip to content

Fix older podcasts not loading due to feed cache cap (#174)#175

Merged
chhoumann merged 3 commits into
masterfrom
chhoumann/shanghai
Jun 9, 2026
Merged

Fix older podcasts not loading due to feed cache cap (#174)#175
chhoumann merged 3 commits into
masterfrom
chhoumann/shanghai

Conversation

@chhoumann

@chhoumann chhoumann commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes #174 by fetching the full RSS feed when a user opens a show or the Played view, instead of reusing the 75-episode disk cache introduced in #124. Background Latest Episodes aggregation still uses the truncated cache for fast startup. Adds regression tests that reproduce the truncated-cache scenario and a unit test documenting the 75-episode persist cap.

Test plan

  • npm test — 152 tests pass
  • Regression tests fail when cache bypass is reverted
  • Manual: open a large show (e.g. ATP) after reload — older episodes appear without refresh
  • Manual: Played view resolves older finished episodes as playable

Made with Cursor


Open in Devin Review

Older episodes were hidden because the 75-episode disk cache was reused when opening a show or the Played view. Fetch the full RSS feed for those actions while keeping the cache for background Latest Episodes aggregation.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 9, 2026

Copy link
Copy Markdown

Deploying podnotes with  Cloudflare Pages  Cloudflare Pages

Latest commit: d1476bf
Status: ✅  Deploy successful!
Preview URL: https://dab65956.podnotes.pages.dev
Branch Preview URL: https://chhoumann-shanghai.podnotes.pages.dev

View logs

Skip only the truncated disk cache on show and Played view opens. After a full RSS fetch, reuse the in-memory feed until refresh forces a network reload.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e111a2e825

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/ui/PodcastView/PodcastView.svelte Outdated

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 2 potential issues.

View 1 additional finding in Devin Review.

Open in Devin Review

Comment thread src/ui/PodcastView/PodcastView.svelte
Fall back to in-memory or persisted episodes when a forced network fetch fails, and limit Played view fetches to feeds that actually have finished played episodes.
@chhoumann chhoumann force-pushed the chhoumann/shanghai branch from e4e9719 to d1476bf Compare June 9, 2026 07:15
@chhoumann chhoumann merged commit cfae7ab into master Jun 9, 2026
2 checks passed
@chhoumann chhoumann deleted the chhoumann/shanghai branch June 9, 2026 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Older podcasts no longer loading

1 participant